/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package WS.Respuestas;

import Objects.Measure;
import Objects.Sex;
import Objects.Unit;

/**
 *
 * @author ARMGARCES
 */
public class RespBdConfig {    
    private int result;  
    private int esNulo;
    private String error;
    private Measure[] measures;
    private Unit[] units;
    private Sex[] sexs;
    /**
     * 
     */
    public RespBdConfig(){
        esNulo = 1;
        result = 0;
        error  = ""; 
    }
    /**
     * 
     * @return 
     */
    public boolean isNull(){
        if(getEsNulo() == 1) return true;
        else return false;
    }
    /**
     * @return the result
     */
    public int getResult() {
        return result;
    }
    /**
     * @param result the result to set
     */
    public void setResult(int result) {
        this.setEsNulo(0);
        this.result = result;
    }
    /**
     * @return the error
     */
    public String getError() {
        return error;
    }
    /**
     * @param error the error to set
     */
    public void setError(String error) {        
        this.error = error;
    }
    /**
     * @return the esNulo
     */
    public int getEsNulo() {
        return esNulo;
    }
    /**
     * @param esNulo the esNulo to set
     */
    public void setEsNulo(int esNulo) {
        this.esNulo = esNulo;
    }    
    /**
     * @return the measures
     */
    public Measure[] getMeasures() {
        return measures;
    }
    /**
     * @param measures the measures to set
     */
    public void setMeasures(Measure[] measures) {
        this.setEsNulo(0);
        this.measures = measures;
    }
    /**
     * @return the units
     */
    public Unit[] getUnits() {
        return units;
    }
    /**
     * @param units the units to set
     */
    public void setUnits(Unit[] units) {
        this.setEsNulo(0);
        this.units = units;
    }
    /**
     * @return the sexs
     */
    public Sex[] getSexs() {
        return sexs;
    }
    /**
     * @param sexs the sexs to set
     */
    public void setSexs(Sex[] sexs) {
        this.setEsNulo(0);
        this.sexs = sexs;
    }
}
